# coding=utf-8
import csv
with open("data.csv",encoding='utf-8',newline='') as fp:
    writer = csv.writer(fp)
    header = ['名字','技能']
    data = [['林天赐','跳杀'],['林丹','不杀'],['李宗伟','王之蔑视']]
    writer.writerow(header)
    writer.writerows(data)
with open("data.csv",encoding='utf-8') as fp:
    readerDic = csv.DictReader(fp)
    read = readerDic.reader()
    for i in read:
        print(i)
# f = open('data.txt', 'r')
# f.seek(2)
# print(f.read(7))
# f.close()
